package club.banyuan.demo.sec.controller;

import club.banyuan.demo.sec.common.ApiResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "FrontController")
@RestController
@RequestMapping("/api")
public class FrontController {

    @ApiOperation(value = "Hello", notes = "hello world")
    @GetMapping("/hello")
    public ApiResponse hello() {
        return ApiResponse.success("Front Hello");
    }
}
